package com.seventeen.monster.redisson.annotation;

import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * @author seventeen
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface DelayedQueueListener {

    /**
     * queue name
     */
    String queueName();

    /**
     * consumer thread number.
     */
    int consumeThreadNumber() default 1;

    /**
     * Message consume retry strategy
     * 0,no retry
     * >0,<16 use retry level
     * >16, 2 hour
     */
    int retryLevelWhenNextConsume() default 0;
}
